<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META NAME="generator" CONTENT="http://txt2tags.org">
</HEAD><BODY BGCOLOR="white" TEXT="black">
<CENTER>
</CENTER>


<H2>Syntax: E-mail</H2>

<P>
<A HREF="mailto:user@domain.com">user@domain.com</A>
<A HREF="mailto:user@domain.com">user@domain.com</A>.
<A HREF="mailto:user@domain.com">user@domain.com</A>. any text.
any text: <A HREF="mailto:user@domain.com">user@domain.com</A>. any text.
<A HREF="mailto:user@domain.com">label</A>
</P>

<H2>Syntax: E-mail with form data</H2>

<P>
<A HREF="mailto:user@domain.com?subject=bla">user@domain.com?subject=bla</A>
<A HREF="mailto:user@domain.com?subject=bla.">user@domain.com?subject=bla.</A>
<A HREF="mailto:user@domain.com?subject=bla,">user@domain.com?subject=bla,</A>
<A HREF="mailto:user@domain.com?subject=bla&amp;cc=otheruser@domain.com">user@domain.com?subject=bla&amp;cc=otheruser@domain.com</A>
<A HREF="mailto:user@domain.com?subject=bla&amp;cc=otheruser@domain.com.">user@domain.com?subject=bla&amp;cc=otheruser@domain.com.</A>
<A HREF="mailto:user@domain.com?subject=bla&amp;cc=otheruser@domain.com,">user@domain.com?subject=bla&amp;cc=otheruser@domain.com,</A>
<A HREF="mailto:user@domain.com?subject=bla&amp;cc=otheruser@domain.com">label</A>.
<A HREF="mailto:user@domain.com?subject=bla&amp;cc=otheruser@domain.com.">label</A>.
</P>

<H2>Syntax: URL</H2>

<P>
<A HREF="http://www.domain.com">http://www.domain.com</A>
<A HREF="http://www.domain.com/dir/">http://www.domain.com/dir/</A>
<A HREF="http://www.domain.com/dir///">http://www.domain.com/dir///</A>
<A HREF="http://www.domain.com">http://www.domain.com</A>.
<A HREF="http://www.domain.com">http://www.domain.com</A>,
<A HREF="http://www.domain.com">http://www.domain.com</A>. any text.
<A HREF="http://www.domain.com">http://www.domain.com</A>, any text.
<A HREF="http://www.domain.com/dir/">http://www.domain.com/dir/</A>. any text.
any text: <A HREF="http://www.domain.com">http://www.domain.com</A>. any text.
any text: <A HREF="http://www.domain.com/dir/">http://www.domain.com/dir/</A>. any text.
any text: <A HREF="http://www.domain.com/dir/index.html">http://www.domain.com/dir/index.html</A>. any text.
any text: <A HREF="http://www.domain.com/dir/index.html">http://www.domain.com/dir/index.html</A>, any text.
</P>

<H2>Syntax: URL with anchor</H2>

<P>
<A HREF="http://www.domain.com/dir/#anchor">http://www.domain.com/dir/#anchor</A>
<A HREF="http://www.domain.com/dir/index.html#anchor">http://www.domain.com/dir/index.html#anchor</A>
<A HREF="http://www.domain.com/dir/index.html#anchor.">http://www.domain.com/dir/index.html#anchor.</A>
<A HREF="http://www.domain.com/dir/#anchor.">http://www.domain.com/dir/#anchor.</A> any text.
<A HREF="http://www.domain.com/dir/index.html#anchor.">http://www.domain.com/dir/index.html#anchor.</A> any text.
any text: <A HREF="http://www.domain.com/dir/#anchor.">http://www.domain.com/dir/#anchor.</A> any text.
any text: <A HREF="http://www.domain.com/dir/index.html#anchor.">http://www.domain.com/dir/index.html#anchor.</A> any text.
</P>

<H2>Syntax: URL with form data</H2>

<P>
<A HREF="http://domain.com?a=a@a.a&amp;b=a+b+c.">http://domain.com?a=a@a.a&amp;b=a+b+c.</A>
<A HREF="http://domain.com?a=a@a.a&amp;b=a+b+c,">http://domain.com?a=a@a.a&amp;b=a+b+c,</A>
<A HREF="http://domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c.">http://domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c.</A>
<A HREF="http://domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c@.">http://domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c@.</A>
</P>

<H2>Syntax: URL with form data and anchor</H2>

<P>
<A HREF="http://domain.com?a=a@a.a&amp;b=a+b+c.#anchor">http://domain.com?a=a@a.a&amp;b=a+b+c.#anchor</A>
<A HREF="http://domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c.#anchor">http://domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c.#anchor</A>
<A HREF="http://domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c@.#anchor">http://domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c@.#anchor</A>
</P>

<H2>Syntax: URL with login data</H2>

<P>
<A HREF="http://user:password@domain.com/bla.html">http://user:password@domain.com/bla.html</A>.
<A HREF="http://user:password@domain.com/dir/">http://user:password@domain.com/dir/</A>.
<A HREF="http://user:password@domain.com">http://user:password@domain.com</A>.
<A HREF="http://user:@domain.com">http://user:@domain.com</A>.
<A HREF="http://user@domain.com">http://user@domain.com</A>.
</P>

<H2>Syntax: URL with login, form and anchor</H2>

<P>
<A HREF="http://user:password@domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c.#anchor">http://user:password@domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c.#anchor</A>
<A HREF="http://user:password@domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c@#anchor">http://user:password@domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c@#anchor</A>
</P>

<H2>Syntax: URL with label</H2>

<P>
<A HREF="http://www.domain.com">label</A>
</P>

<H2>Syntax: URL with label (trailing spaces are discarded, leading are maintained)</H2>

<P>
<A HREF="http://www.domain.com">  label</A>
<A HREF="http://www.domain.com">label</A>
</P>

<H2>Syntax: URL with label, stressing</H2>

<P>
<A HREF="http://www.domain.com/dir/index.html#anchor.">anchor</A>
<A HREF="http://user:password@domain.com/bla.html">login</A>
<A HREF="http://www.domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c.">form</A>
<A HREF="http://www.domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c.#anchor">form &amp; anchor</A>
<A HREF="http://user:password@domain.com/bla.cgi?a=a@a.a&amp;b=a+b+c.">login &amp; form</A>
</P>

<H2>Syntax: Link with label for local files</H2>

<P>
<A HREF="..">local link up</A>
<A HREF="bla.html">local link file</A>
<A HREF="#anchor">local link anchor</A>
<A HREF="bla.html#anchor">local link file/anchor</A>
<A HREF="bla.html#anchor.">local link file/anchor</A>
<A HREF="abc.gif">local link img</A>
</P>

<H2>Syntax: Another link as a label</H2>

<P>
<A HREF="http://www.domain.com">www.fake.com</A>
</P>

<H2>Syntax: URL with funny chars</H2>

<P>
<A HREF="http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm">http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm</A>
<A HREF="http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&amp;b=+.@*_-">http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&amp;b=+.@*_-</A>
<A HREF="http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&amp;b=+.@*_-#anchor_-1%.">http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&amp;b=+.@*_-#anchor_-1%.</A>
<A HREF="http://foo._user-9:pass!#$%&amp;*()+word@domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&amp;b=+.@*_-#anchor_-1%.">http://foo._user-9:pass!#$%&amp;*()+word@domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&amp;b=+.@*_-#anchor_-1%.</A>
</P>

<H2>Test: Various per line</H2>

<P>
<A HREF="http://L1.com">http://L1.com</A> ! <A HREF="mailto:L2@www.com">L2@www.com</A> ! <A HREF="http://www.com">L3</A> ! <A HREF="mailto:w@ww.com">L4</A> ! <A HREF="http://www.L5.com">www.L5.com</A>
</P>

<H2>Feature: Guessed link, adding protocol automatically</H2>

<P>
<A HREF="http://www.domain.com">www.domain.com</A>
<A HREF="http://www2.domain.com">www2.domain.com</A>
<A HREF="ftp://ftp.domain.com">ftp.domain.com</A>
<A HREF="http://WWW.DOMAIN.COM">WWW.DOMAIN.COM</A>
<A HREF="ftp://FTP.DOMAIN.COM">FTP.DOMAIN.COM</A>
<A HREF="http://www.domain.com">label</A>
<A HREF="ftp://ftp.domain.com">label</A>
<A HREF="http://WWW.DOMAIN.COM">label</A>
<A HREF="ftp://FTP.DOMAIN.COM">label</A>
</P>

<H2>Invalid: Trailing space on link</H2>

<P>
[label <A HREF="http://www.domain.com">www.domain.com</A> ]
</P>

<H2>Invalid: Label with ] char (use postproc)</H2>

<P>
[label] <A HREF="http://www.domain.com">www.domain.com</A>]
</P>

<!-- html code generated by txt2tags (http://txt2tags.org) -->
<!-- cmdline: txt2tags -q -\-no-rc link.t2t -->
</BODY></HTML>
